home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C++ source text
| default
| |
98%
| file
| C++ source, ISO-8859 text
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 62 73 2e 74 70 |Path: ne|ws.bs.tp|
|00000010| 6c 2e 6e 65 74 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |l.net!ne|ws.From:|
|00000020| 20 44 69 65 74 65 72 20 | 4c fc 63 6b 69 6e 67 20 | Dieter |L.cking |
|00000030| 3c 6c 75 65 63 6b 69 6e | 67 40 62 72 61 75 6e 73 |<lueckin|g@brauns|
|00000040| 63 68 77 65 69 67 2e 6e | 65 74 73 75 72 66 2e 64 |chweig.n|etsurf.d|
|00000050| 65 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |e>.Newsg|roups: c|
|00000060| 6f 6d 70 2e 6c 61 6e 67 | 2e 63 2b 2b 0a 53 75 62 |omp.lang|.c++.Sub|
|00000070| 6a 65 63 74 3a 20 52 65 | 3a 20 72 65 74 75 72 6e |ject: Re|: return|
|00000080| 69 6e 67 20 6e 75 6c 6c | 20 73 74 72 75 63 74 75 |ing null| structu|
|00000090| 72 65 0a 44 61 74 65 3a | 20 53 75 6e 2c 20 32 31 |re.Date:| Sun, 21|
|000000a0| 20 41 70 72 20 31 39 39 | 36 20 30 35 3a 32 32 3a | Apr 199|6 05:22:|
|000000b0| 35 37 20 2b 30 32 30 30 | 0a 4f 72 67 61 6e 69 7a |57 +0200|.Organiz|
|000000c0| 61 74 69 6f 6e 3a 20 49 | 52 44 20 49 6e 74 65 72 |ation: I|RD Inter|
|000000d0| 4e 65 74 20 53 65 72 76 | 69 63 65 73 20 47 6d 62 |Net Serv|ices Gmb|
|000000e0| 48 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 33 |H.Messag|e-ID: <3|
|000000f0| 31 37 39 41 41 31 31 2e | 34 46 32 40 62 72 61 75 |179AA11.|4F2@brau|
|00000100| 6e 73 63 68 77 65 69 67 | 2e 6e 65 74 73 75 72 66 |nschweig|.netsurf|
|00000110| 2e 64 65 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |.de>.Ref|erences:|
|00000120| 20 3c 34 6c 39 33 30 65 | 24 75 69 63 40 73 70 31 | <4l930e|$uic@sp1|
|00000130| 31 35 2e 6f 63 73 2e 6c | 73 75 2e 65 64 75 3e 0a |15.ocs.l|su.edu>.|
|00000140| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000150| 74 3a 20 70 6c 75 65 63 | 6b 69 6e 2e 62 72 61 75 |t: pluec|kin.brau|
|00000160| 6e 73 63 68 77 65 69 67 | 2e 6e 65 74 73 75 72 66 |nschweig|.netsurf|
|00000170| 2e 64 65 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |.de.Mime|-Version|
|00000180| 3a 20 31 2e 30 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |: 1.0.Co|ntent-Ty|
|00000190| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|000001a0| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|000001b0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 72 61 6e 73 66 65 |.Content|-Transfe|
|000001c0| 72 2d 45 6e 63 6f 64 69 | 6e 67 3a 20 37 62 69 74 |r-Encodi|ng: 7bit|
|000001d0| 0a 58 2d 4d 61 69 6c 65 | 72 3a 20 4d 6f 7a 69 6c |.X-Maile|r: Mozil|
|000001e0| 6c 61 20 32 2e 30 31 20 | 28 57 69 6e 39 35 3b 20 |la 2.01 |(Win95; |
|000001f0| 49 29 0a 54 6f 3a 20 50 | 72 61 64 65 65 70 20 4e |I).To: P|radeep N|
|00000200| 61 79 61 72 20 3c 65 65 | 6e 61 79 61 40 75 6e 69 |ayar <ee|naya@uni|
|00000210| 78 31 2e 73 6e 63 63 2e | 6c 73 75 2e 65 64 75 3e |x1.sncc.|lsu.edu>|
|00000220| 0a 0a 50 72 61 64 65 65 | 70 20 4e 61 79 61 72 20 |..Pradee|p Nayar |
|00000230| 77 72 6f 74 65 3a 0a 3e | 20 0a 3e 20 49 20 68 61 |wrote:.>| .> I ha|
|00000240| 76 65 20 61 20 66 75 6e | 63 74 69 6f 6e 20 77 68 |ve a fun|ction wh|
|00000250| 69 63 68 20 72 65 74 75 | 72 6e 73 20 61 6e 20 6f |ich retu|rns an o|
|00000260| 62 6a 65 63 74 2c 20 68 | 6f 77 20 63 61 6e 20 49 |bject, h|ow can I|
|00000270| 20 72 65 74 75 72 6e 20 | 61 6e 20 65 72 72 6f 72 | return |an error|
|00000280| 20 63 6f 6e 64 69 74 69 | 6f 6e 2e 0a 3e 20 4c 65 | conditi|on..> Le|
|00000290| 74 20 6d 65 20 62 65 20 | 6d 6f 72 65 20 73 70 65 |t me be |more spe|
|000002a0| 63 69 66 69 63 3a 0a 3e | 20 20 20 20 20 49 20 61 |cific:.>| I a|
|000002b0| 6d 20 69 6d 70 6c 65 6d | 65 6e 74 69 6e 67 20 61 |m implem|enting a|
|000002c0| 20 73 74 61 63 6b 20 61 | 6e 64 20 69 6e 20 20 74 | stack a|nd in t|
|000002d0| 68 65 20 70 6f 70 28 29 | 20 66 6e 2e 20 49 20 77 |he pop()| fn. I w|
|000002e0| 61 6e 74 20 6f 74 20 72 | 65 74 75 72 6e 20 61 20 |ant ot r|eturn a |
|000002f0| 6e 75 6c 6c 0a 3e 20 6f | 62 6a 65 63 74 20 6f 72 |null.> o|bject or|
|00000300| 20 73 6f 6d 65 74 68 69 | 6e 67 20 77 68 65 6e 20 | somethi|ng when |
|00000310| 74 68 65 20 73 74 61 63 | 6b 20 69 73 20 65 6d 70 |the stac|k is emp|
|00000320| 74 79 2e 20 20 49 6e 20 | 63 61 73 65 20 6f 66 20 |ty. In |case of |
|00000330| 63 68 61 72 61 63 74 65 | 72 73 2c 20 69 20 63 61 |characte|rs, i ca|
|00000340| 6e 0a 3e 20 72 65 74 75 | 72 6e 20 61 20 2d 31 3b |n.> retu|rn a -1;|
|00000350| 20 77 68 61 74 20 64 6f | 20 69 20 64 6f 20 77 68 | what do| i do wh|
|00000360| 65 6e 20 69 20 68 61 76 | 65 20 61 20 73 74 61 63 |en i hav|e a stac|
|00000370| 6b 20 6f 66 20 6f 62 6a | 65 63 74 73 3f 0a 3e 20 |k of obj|ects?.> |
|00000380| 0a 3e 20 50 72 61 64 65 | 65 70 0a 0a 0a 55 73 65 |.> Prade|ep...Use|
|00000390| 20 66 6f 6c 6c 6f 77 69 | 6e 67 3a 0a 0a 74 65 6d | followi|ng:..tem|
|000003a0| 70 6c 61 74 65 20 3c 63 | 6c 61 73 73 20 54 59 50 |plate <c|lass TYP|
|000003b0| 45 3e 0a 63 6c 61 73 73 | 20 41 43 6c 61 73 73 0a |E>.class| AClass.|
|000003c0| 7b 0a 20 20 20 70 75 62 | 6c 69 63 3a 0a 20 20 20 |{. pub|lic:. |
|000003d0| 73 74 61 74 69 63 20 63 | 6f 6e 73 74 20 41 43 6c |static c|onst ACl|
|000003e0| 61 73 73 26 20 6e 75 6c | 6c 3b 0a 7d 3b 0a 0a 74 |ass& nul|l;.};..t|
|000003f0| 65 6d 70 6c 61 74 65 20 | 3c 63 6c 61 73 73 20 54 |emplate |<class T|
|00000400| 59 50 45 3e 0a 63 6f 6e | 73 74 20 41 43 6c 61 73 |YPE>.con|st AClas|
|00000410| 73 3c 63 6c 61 73 73 20 | 54 59 50 45 3e 20 41 43 |s<class |TYPE> AC|
|00000420| 6c 61 73 73 3c 54 59 50 | 45 3e 3a 3a 6e 75 6c 6c |lass<TYP|E>::null|
|00000430| 28 29 3b 20 2f 2f 20 6f | 72 20 61 6e 79 20 6f 74 |(); // o|r any ot|
|00000440| 68 65 72 20 63 6f 6e 73 | 74 72 75 63 74 6f 72 0a |her cons|tructor.|
|00000450| 0a 74 65 6d 70 6c 61 74 | 65 20 3c 63 6c 61 73 73 |.templat|e <class|
|00000460| 20 54 59 50 45 3e 0a 63 | 6f 6e 73 74 20 41 43 6c | TYPE>.c|onst ACl|
|00000470| 61 73 73 26 20 70 6f 70 | 28 29 0a 7b 0a 20 20 20 |ass& pop|().{. |
|00000480| 2e 2e 2e 0a 20 20 20 69 | 66 28 65 6d 70 74 79 29 |.... i|f(empty)|
|00000490| 20 72 65 74 75 72 6e 20 | 41 43 6c 61 73 73 3c 54 | return |AClass<T|
|000004a0| 59 50 45 3e 3a 3a 6e 75 | 6c 6c 3b 0a 7d 0a 0a 49 |YPE>::nu|ll;.}..I|
|000004b0| 66 20 69 74 20 69 73 20 | 74 6f 6f 20 64 61 6e 67 |f it is |too dang|
|000004c0| 65 72 6f 75 73 20 74 6f | 20 75 73 65 20 41 43 6c |erous to| use ACl|
|000004d0| 61 73 73 3c 54 59 50 45 | 3e 3a 3a 6e 75 6c 6c 20 |ass<TYPE|>::null |
|000004e0| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 63 6c 61 |create a| new cla|
|000004f0| 73 73 3a 0a 74 65 6d 70 | 6c 61 74 65 20 3c 63 6c |ss:.temp|late <cl|
|00000500| 61 73 73 20 54 59 50 45 | 3e 0a 63 6c 61 73 73 20 |ass TYPE|>.class |
|00000510| 4e 75 6c 6c 43 6c 61 73 | 73 20 3a 20 70 72 69 76 |NullClas|s : priv|
|00000520| 61 74 65 20 41 43 6c 61 | 73 73 3c 54 59 50 45 3e |ate ACla|ss<TYPE>|
|00000530| 0a 7b 0a 20 20 20 2e 2e | 2e 0a 7d 3b 0a 20 20 20 |.{. ..|..};. |
|00000540| 0a 59 6f 75 20 6d 61 79 | 20 61 6c 73 6f 20 75 73 |.You may| also us|
|00000550| 65 20 69 74 20 77 69 74 | 68 6f 75 74 20 74 65 6d |e it wit|hout tem|
|00000560| 70 6c 61 74 65 73 20 2e | 2e 2e 0a 42 79 65 20 44 |plates .|...Bye D|
|00000570| 69 65 74 65 72 0a 0a 0a | 0a |ieter...|. |
+--------+-------------------------+-------------------------+--------+--------+